function displayMultivariateLogitRegressResults(res)


%%%%%
% This function produces a csv file containing logistic regression results.
%
% Inputs:
% res - output from the logitRegress.m
% path - string containing the path for the generated csv file
% csvname - string representing the csv file name
% inputLabels - 1D cell array of string labels of the input variables. should be in the same order as the b coefficients in res (note: don't include one for the constant term).
% outcomeLabel - string for the label of the outcome variable.
%
% Written by Joon Lee, 2010, adapted by Thomas Brennan
%%%%%



%fprintf('N: %d\n',res.N); 
fprintf('AUC: %0.2f\n',res.auc);
fprintf('H-L test p-value: %f\n',res.HLtestp);
%fprintf('x-validation mean AUC: %.2f\n',res.xval(1));
%fprintf('x-validation std AUC: %.2f\n',res.xval(2));

for i=2:length(res.b)
    if (res.stats.p(i)<0.05)
        fprintf('Coeff %d: ',i-1);
        fprintf('Odds Ratio %1.4f, ',exp(res.b(i)));
        %fprintf('95 Confidence Interval Lower Bound %d\n',exp(-1.96.*res.stats.se(i)+res.b(i)));
        %fprintf('95 Confidence Interval Upper Bound %d\n',exp(1.96.*res.stats.se(i)+res.b(i)));
        fprintf('p-value %.6f\n',res.stats.p(i));

    end
end

